package sef.impl.service;

import org.apache.log4j.Logger;

import sef.domain.EmployeeDetail;
import sef.interfaces.repository.EmployeeRepository;
import sef.interfaces.repository.ProjectRepository;
import sef.interfaces.repository.SkillRepository;
import sef.interfaces.service.EmployeeDetailsService;

public class StubEmployeeDetailsServiceImpl implements EmployeeDetailsService{
	
	//Tip: create member variables in this class that will contain the objects 
	//passed by the Spring framework so that other methods can access the objects.

	private static Logger log = Logger.getLogger(StubEmployeeDetailsServiceImpl.class);
	EmployeeRepository empDAO;
	ProjectRepository projectDAO;
	SkillRepository skillDAO;
	
	public StubEmployeeDetailsServiceImpl(EmployeeRepository empDAO, ProjectRepository projectDAO, SkillRepository skillDAO){
		this.empDAO = empDAO;
		this.projectDAO = projectDAO;
		this.skillDAO = skillDAO;
	}

	@Override
	public EmployeeDetail getEmployeeDetails(long employeeID) {
		EmployeeDetail detail = empDAO.getEmployeeDetails(employeeID); 
		return detail;
	}
}
